import type { IModalConfig } from '@/global/types'

export const skuAddModalConfig: IModalConfig = {
  pageName: 'goodSku',
  type: 'dialog',
  layout: {
    title: '新增sku信息',
    width: '35%',
    showClose: true, // 是否显示右上角关闭图标
    closeOnClick: true // 点击遮罩层是否能关闭对话框
  },
  form: {
    layout: {
      isShowBtns: false,
      labelWidth: '60px',
      size: 'default'
    },
    items: [
      {
        type: 'input',
        prop: 'specificationName',
        span: 24,
        label: '规格名',
        placeholder: '请输入规格名'
      },
      {
        type: 'custom',
        slotName: 'formSpecificationValues',
        label: '规格值',
        span: 24
      }
    ]
  }
}

export default skuAddModalConfig
